package com.smartpro.mis.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 岗位表
 * </p>
 *
 * @author mengiy123
 * @since 2019-05-07
 */
@TableName("position")
public class Position extends Model<Position> {

    private static final long serialVersionUID = 1L;

    /**
     * 岗位id
     */
    @TableId(value = "positionID", type = IdType.AUTO)
    private Integer positionID;
    /**
     * 岗位名称
     */
    private String position;
    /**
     * 缺省有效期
     */
    private Integer defaultValidationDays;
    /**
     * 缺省保护期
     */
    private Integer defaultProtectionDays;


    public Integer getPositionID() {
        return positionID;
    }

    public void setPositionID(Integer positionID) {
        this.positionID = positionID;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getDefaultValidationDays() {
        return defaultValidationDays;
    }

    public void setDefaultValidationDays(Integer defaultValidationDays) {
        this.defaultValidationDays = defaultValidationDays;
    }

    public Integer getDefaultProtectionDays() {
        return defaultProtectionDays;
    }

    public void setDefaultProtectionDays(Integer defaultProtectionDays) {
        this.defaultProtectionDays = defaultProtectionDays;
    }

    @Override
    protected Serializable pkVal() {
        return this.positionID;
    }

    @Override
    public String toString() {
        return "Position{" +
        "positionID=" + positionID +
        ", position=" + position +
        ", defaultValidationDays=" + defaultValidationDays +
        ", defaultProtectionDays=" + defaultProtectionDays +
        "}";
    }
}
